<template>
    <div>
        <a-input :style="{width:'320px'}" :placeholder="placeholder" allow-clear />
    </div>
</template>

<script setup>
// 属性也是一个只读的响应式变量
const props = defineProps({
    placeholder: String,
})

console.log(props.placeholder) 
</script>

<style lang="scss" scoped>

</style>